from dajaxice.core import dajaxice_autodiscover

from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings
from soccerFriend.views import *

admin.autodiscover()
dajaxice_autodiscover()

urlpatterns = patterns('',
    # Example:
    (r'^main/', index),
    (r'^$', soccerFriend),
    (r'^admin/', include(admin.site.urls)),
    (r'^%s/' % settings.DAJAXICE_MEDIA_PREFIX, include('dajaxice.urls')),
)


if settings.DEBUG:
    urlpatterns += patterns('',
        (r'^static-media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    )